class Solution4 {
    public static int getSum(int a, int b) {
        int c = 0;
        while(((a & b) << 1) != 0) {
            c = (a & b) << 1;
            a = a ^ b;
            b = c;
        }
        return a ^ b;
    }

    public static void main(String[] args) {
        int c = getSum(13,28);
        System.out.println(c);
    }
}